package com.xmy.study.service.impl;

import com.xmy.study.entity.Shutnum;
import com.xmy.study.mapper.ShutnumMapper;
import com.xmy.study.service.IShutnumService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 关数 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-08
 */
@Service
public class ShutnumServiceImpl extends ServiceImpl<ShutnumMapper, Shutnum> implements IShutnumService {
    @Autowired
    ShutnumMapper eduShutnumMapper;
    /**
     * 获取关卡数集合列表
     *
     * @param courseId
     * @return
     */
    @Override
    public List<Integer> getNumList(String courseId) {
        return eduShutnumMapper.getNumList(courseId);
    }
    @Override
    public Integer getCountNum(String courseId) {
        return eduShutnumMapper.getCountNum(courseId);
    }
}
